import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/views/Home';

Vue.use(VueRouter)

let router = new VueRouter({
    mode: 'hash',
    routes: [{
        path: "/",
        name: "Home",
        title: "监控",
        icon: 'el-icon-s-platform',
        component: Home
    }, {
        path: "/config",
        name: "Config",
        title: "报警策略",
        icon: 'el-icon-message-solid',
        component: () => import("@/views/Config")
    }]
})

export default router